package breakthrough;

public class PawnPosition
{
	private int row;
	private int column;
	
	public PawnPosition(int r, int c)
	{
		this.row = r;
		this.column = c;
	}
	
	public int getRow()
	{
		return this.row;
	}
	
	public int getColumn()
	{
		return this.column;
	}
	
	public void setRow(int r)
	{
		this.row = r;
	}
	
	public void setColumn(int c)
	{
		this.column = c;
	}
	
	public boolean equals(Object pos)
	{
		return this.getRow() == ((PawnPosition)pos).getRow() && this.getColumn() == ((PawnPosition)pos).getColumn(); 
	}
	
	public String toString()
	{
		return "row = " + this.row + "; col = " + this.column;
	}
}
